cssnode: Move clear_classes() into the NodeDeclaration
authorBenjamin Otte <otte@redhat.com>
Sat, 12 Sep 2015 00:58:28 +0000 (02:58 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 12 Sep 2015 03:27:35 +0000 (05:27 +0200)
commit610452dda87e4142114448cef99956fcda93ca2b
treeee62e56391b311d36847975beee01d41d6e7200a
parent6118893a4ea75d9f94e5e68ed1c8e0ae73442926
cssnode: Move clear_classes() into the NodeDeclaration

The previous code was crashing when used as the returned classes array
would have been invalid after the first deletion. So if a 2nd class
would be deleted, invalid memory might have been referenced.
gtk/gtkcssnode.c
gtk/gtkcssnodedeclaration.c
gtk/gtkcssnodedeclarationprivate.h